package com.le.tester.book.concurrentchallenge.explicitlock13;

import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;

/**
 * createTime：2025-05-16 10:06
 * description：lock接口
 */
public interface LLock {
    void lock();

    void lockInterruptibly() throws InterruptedException;

    boolean tryLock();

    boolean tryLock(long timeout, TimeUnit timeUnit) throws InterruptedException;

    void unLock();

    Condition newCondition();


}
